﻿
@{
    Layout = "~/Views/Shared/Index.cshtml";
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>ADDnotice</title>
</head>
<body>
    @using (Html.BeginForm(new { @class = "bs-example bs-example-form" }))
    {
        <div class="well">

            <div class="layui-form">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        标题
                    </div>
                    <input type="text" placeholder="请输入标题" required name="title" class="layui-input">
                </div>
            </div>
            <br />
           <h5> 公告内容</h5>
            <div class="layui-form">
                <div class="layui-input-group">

                    <textarea style="width:500px;height:200px;" placeholder="请输入内容" name="contentT" class="layui-textarea"></textarea>

                </div>
            </div>
            <br />

            <div class="layui-form">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        部门
                    </div>
                    <select name="notice_Name" required class="form-control  el-icon-arrow-down">
                        
                        <option  value="1">人力资源部</option>
                        <option value="2">市场部</option>
                        <option value="3">财务部</option>
                        <option value="4">技术部</option>
                        <option value="5">客服部</option>
                        <option value="6">销售部</option>
                        <option value="7">采购部</option>
                        <option value="8">行政部</option>
                        <option value="9">研发部</option>
                        <option value="10">运营部</option>
                    </select>
                </div>
            </div><br />
            <div class="layui-form">
                <div class="layui-input-group">
                    <div class="layui-input-split layui-input-prefix">
                        日期
                    </div>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" name="publish_time" id="ID-laydate-type-datetime-1" placeholder="请选择">
                    </div>
                </div>
            </div>

            <br />

            <input type="submit" class="btn btn-primary" value="确认添加" />
            <a href="/home/notice" class="btn   btn-block btn-link bor_a">取 &emsp;消</a>
        </div>
    }
</body>
</html>
<script>
layui.use(function(){
  var laydate = layui.laydate;
  // 年选择器
  laydate.render({
    elem: '#ID-laydate-type-year',
    type: 'year'
  });

  // 年月选择器
  laydate.render({
    elem: '#ID-laydate-type-month',
    type: 'month'
  });

  // 时间选择器
  laydate.render({
    elem: '#ID-laydate-type-time',
    type: 'time'
  });

  // 日期时间选择器
  laydate.render({
    elem: '#ID-laydate-type-datetime',
    type: 'datetime'
  });
  // 日期时间选择器 - 日期和时间选择器同时显示（全面板）
  laydate.render({
    elem: '#ID-laydate-type-datetime-1',
    type: 'datetime',
    fullPanel: true // 2.8+
  });
});
</script>